home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / WindowLib / WindowET.c next >
Encoding:
C/C++ Source or Header  |  1994-01-12  |  644 b   |  39 lines  |  [TEXT/KAHL]

  1. #include "EventLib.h"
  2. #include "WindowLib.h"
  3.  
  4. static EventTableType gEventTable;
  5.  
  6. static void activate(EventObjectType object, Boolean activate)
  7. {
  8.     WinActivate(object, activate);
  9. }
  10.  
  11. static void update(EventObjectType object)
  12. {
  13.     WinUpdate(object);
  14. }
  15.  
  16. static void suspend(void)
  17. {
  18.     WinSuspend();
  19. }
  20.  
  21. static void resume(void)
  22. {
  23.     WinResume();
  24. }
  25.  
  26. const EventTableType *WinEventTable(void)
  27. {
  28.     return(&gEventTable);
  29. }
  30.  
  31. void WinEventTableRegister(void)
  32. {
  33.     gEventTable.window.activate = activate;
  34.     gEventTable.window.update = update;
  35.     gEventTable.objectType.suspend = suspend;
  36.     gEventTable.objectType.resume = resume;
  37.     EventTableRegister(&gEventTable);
  38. }
  39.